package com.cf.user.login.dao;

import com.cf.crud.mapper.BaseMapper;
import com.cf.user.login.model.ThirdPartUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ThirdPartUserDao extends BaseMapper<ThirdPartUser> {

    @Select("select * from thirdPartUser where account=#{account} and pwd=#{pwd}")
    ThirdPartUser selectByAccountAndPwd(@Param("account") String account, @Param("pwd") String pwd);

    @Select("select * from thirdPartUser where channel=#{channel} and unionId=#{unionId}")
    ThirdPartUser selectByUnionId(@Param("channel") String channel, @Param("unionId") String unionId);
}
